<div class="container" ng-controller="LoginController">
	<div class="row">
		<div class="col-md-2 col-md-offset-5">
			
		  <form role="form" novalidate ng-submit="loginForm.$valid && login()" name="loginForm">
			<h3>Login</h3>
			<div class="form-group">
				<input type="text" class="form-control" ng-model="username" name="username" ng-trim="true" placeholder="Username" required autofocus>
			</div>
			<div class="form-group">
				<input type="password" class="form-control" ng-model="password" name="password" ng-trim="true" placeholder="Password" required>
			</div>
			<div class="form-group">
				<button type="submit" class="btn btn-primary" ng-disabled="loginForm.$invalid">Sign in</button>
			</div>
			<div class="alert alert-danger animated fadeIn" role="alert" ng-show="errorMsg">{{errorMsg}}</div>
		  </form>
		</div>
    </div>
</div>
